
class IgnoreInFuture implements Exception {}
class UserAborted implements Exception {}

void raiseIgnoreInFuture() {
  throw IgnoreInFuture();
}

void raiseUserAborted() {
  throw UserAborted();
}

class RequestException implements Exception {
  String msg = "";
  int code = 0;
  int httpCode = 0;

  RequestException({this.code, this.httpCode, this.msg});
  factory RequestException.onlyMessage(String msg) {
    return RequestException(
      code: 0,
      msg: msg,
      httpCode: 0,
    );
  }
}

class JsonDecodeError implements Exception {}

class CancelUploadException implements Exception {}
